package com.gtxy.yyf.doris.controller;

import com.gtxy.yyf.doris.common.core.Result;
import com.gtxy.yyf.doris.service.YyfPmAgetInfoSrService;
import org.jasypt.encryption.StringEncryptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @PackageName: com.gtxy.yyf.doris.controller
 * @author: youjp
 * @slogan: 天下风云出我辈，一入代码岁月催
 * @create: 2022-06-11 15:40
 * @description:
 * @Version: 1.0
 */
@Controller
@RequestMapping("yyf")
public class YyfPmAgetInfoSrController {

    @Autowired
    YyfPmAgetInfoSrService yyfPmAgetInfoSrService;

    @Autowired
    private StringEncryptor stringEncryptor;

    @GetMapping("/list")
    @ResponseBody
    public Result getList(){
        return Result.success(yyfPmAgetInfoSrService.findALl()) ;
    }

    @GetMapping("/test")
    @ResponseBody
    public Result toTest(){
        return Result.success();
    }

}
